package com.hengyu.data.validator;

import com.hengyu.data.validator.annotation.*;
import com.hengyu.data.validator.bean.Valid;

/**
 * ========================
 * Created with IntelliJ IDEA.
 * User：恒宇少年
 * Date：2017/3/19
 * Time：22:12
 * 码云：http://git.oschina.net/jnyqy
 * ========================
 */
@Validation
public class User implements Valid{

    //@NotEmpty
    //@Null
    private String name;

    @Range(min = 20,max = 30)
    private Integer age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
